<div class="zs-body" data-ng-init="formInit('gzqdgl', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{createtime:1}
    }) && loadData('gzqdgl');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">人事管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">签到管理</a>
        </div>
        <div class="option">
			<input type="button" class="zs-btn orange" value="查看备注"
			    ng-click="editQd('gzqdgl', gzqdgl.sRows[0],'search')"/>
			<input type="button" class="zs-btn orange" value="修改记录" ng-show="mi.sa"
			    ng-click="editQd('gzqdgl', gzqdgl.sRows[0],'edit')"/>
        	<!-- <input type="button" class="zs-btn orange" value="签到" 
                ng-click="gzqdgldata('create')"/> -->
           <!-- <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzqdgl') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzqdgl', gzqdgl.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzqdgl')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="考勤人名称" ng-model="gzqdgl.queryObject['kaoqrmc:like']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="年度" ng-model="gzqdgl.queryObject['nandu:like']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="月份" ng-model="gzqdgl.queryObject['yuefen:like']"/>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzqdgl')"/>
                <!--<a class="ope-1" ng-click="loadData('gzqdgl')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table style="text-align: left !important;">
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzqdgl','allCheckbox');" />
                                    </th>
									<th>考勤人信息</th>
									<th>考勤日期</th>
									<th>上午考勤信息</th>
									<th>下午考勤信息</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzqdgl.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzqdgl',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!-- 考勤人信息 -->
            						<td ng-click="editQd('gzqdgl',r,'search')">
                                            <a ng-show="r.danweimc"><label><b>部门:</b>{{r.danweimc}}</label><br/></a>
											<a ng-show="r.kaoqrmc"><label><b>姓名:</b>{{r.kaoqrmc}}</label></a>
                                   </td>
									<!-- 日期 -->
            						<td ng-click="editQd('gzqdgl',r,'search')">
                                        <a>
                                            <label>{{r.nandu}}年{{r.yuefen}}月{{r.day}}日</label>
											<label ng-show="r.xingqi">&nbsp;{{r.xingqi}}</label>
                                        </a>
                                   </td>
								   <!-- 上午考勤信息 -->
								   <td ng-click="editQd('gzqdgl',r,'search')">
								        <a ng-show="r.qdsj"><label><b>签到时间:</b>{{r.qdsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label><br/></a>
										<a ng-show="r.address"><label><b>签到地点:</b>{{r.address}}</label><br/></a>
										<a ng-show="r.qtsj"><label><b>签退时间:</b>{{r.qtsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label><br/></a>
										<a ng-show="r.outaddress"><label><b>签退地点:</b>{{r.outaddress}}</label></a>
								   </td>
								   <!-- 下午考勤信息 -->
								   <td ng-click="editQd('gzqdgl',r,'search')">
										<a ng-show="r.xwqdsj"><label><b>签到时间:</b>{{r.xwqdsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label><br/></a>
										<a ng-show="r.xwaddress"><label><b>签到地点:</b>{{r.xwaddress}}</label><br/></a>
										<a ng-show="r.xwqtsj"><label><b>签退时间:</b>{{r.xwqtsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label><br/></a>
										<a ng-show="r.xwoutaddress"><label><b>签退地点:</b>{{r.xwoutaddress}}</label></a>
								   </td>
								   <!-- <td>
                                        <a ng-click="editRow('gzqdgl',r) && openWindow('edit');">
                                            <label ng-bind="r.qdsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'"></label>
                                        </a>
                                   </td> -->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzqdgl'></ag-Page>
                </div>
            </div>
        </div>
		
		<div ag-Window id="edit" title="签到记录修改" width='1200px' height='600px'>
		    <div class="zs-form-tab ibox">
		        <form name="form" novalidate>
		            <table width="100%">
		                <tbody>
						   <tr>
		                        <td class="text" width="20%">部门:</td>
		                        <td class="left" width="30%">
		                        	<label>{{gzqdgl.editRow.danweimc}}</label>
		                        </td>
		                        <td class="text" width="20%">考勤人:</td>
		                        <td class="left" width="30%">
		                        	<label>{{gzqdgl.editRow.kaoqrmc}}</label>
		                        </td>
		                    </tr>
							<tr>
							    <td class="text" width="20%">日期:</td>
							    <td class="left" width="30%" colspan="3">
							    	<label>{{gzqdgl.editRow.nandu}}年{{gzqdgl.editRow.yuefen}}月{{gzqdgl.editRow.day}}日</label>
							    	<label>&nbsp;{{gzqdgl.editRow.xingqi}}</label>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">上午签到时间:</td>
							    <td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.qds"
										ng-change="setShi('gzqdgl',gzqdgl.editRow.qds,'qds')" class="zs-input zs-small-input-25" />时
									<input type="text" ng-model="gzqdgl.editRow.qdf"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.qdf,'qdf')" class="zs-input zs-small-input-25" />分
									<input type="text" ng-model="gzqdgl.editRow.qdm"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.qdm,'qdm')" class="zs-input zs-small-input-25" />秒
							    </td>
								<td class="text" width="20%">上午签到地点:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.address"
										 class="zs-input" />
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">上午签退时间:</td>
							    <td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.qts"
										ng-change="setShi('gzqdgl',gzqdgl.editRow.qts,'qts')" class="zs-input zs-small-input-25" />时
									<input type="text" ng-model="gzqdgl.editRow.qtf"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.qtf,'qtf')" class="zs-input zs-small-input-25" />分
									<input type="text" ng-model="gzqdgl.editRow.qtm"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.qtm,'qtm')" class="zs-input zs-small-input-25" />秒
							    </td>
								<td class="text" width="20%">上午签退地点:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.outaddress"
										 class="zs-input" />
								</td>
							</tr>
							
							<tr>
							    <td class="text" width="20%">下午签到时间:</td>
							    <td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.xwqds"
										ng-change="setShi('gzqdgl',gzqdgl.editRow.xwqds,'xwqds')" class="zs-input zs-small-input-25" />时
									<input type="text" ng-model="gzqdgl.editRow.xwqdf"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.xwqdf,'xwqdf')" class="zs-input zs-small-input-25" />分
									<input type="text" ng-model="gzqdgl.editRow.xwqdm"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.xwqdm,'xwqdm')" class="zs-input zs-small-input-25" />秒
							    </td>
								<td class="text" width="20%">下午签到地点:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.xwaddress"
										 class="zs-input" />
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">下午签退时间:</td>
							    <td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.xwqts"
										ng-change="setShi('gzqdgl',gzqdgl.editRow.xwqts,'xwqts')" class="zs-input zs-small-input-25" />时
									<input type="text" ng-model="gzqdgl.editRow.xwqtf"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.xwqtf,'xwqtf')" class="zs-input zs-small-input-25" />分
									<input type="text" ng-model="gzqdgl.editRow.xwqtm"
										ng-change="setFen('gzqdgl',gzqdgl.editRow.xwqtm,'xwqtm')" class="zs-input zs-small-input-25" />秒
							    </td>
								<td class="text" width="20%">下午签退地点:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdgl.editRow.xwoutaddress"
										 class="zs-input" />
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">考勤备注:</td>
							    <td class="left" width="30%" colspan="3">
									<label>{{gzqdgl.editRow.dkbz}}</label>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">地点备注:</td>
							    <td class="left" width="30%" colspan="3">
									<label>{{gzqdgl.editRow.bz}}</label>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">备注(用户填写):</td>
							    <td class="left" width="30%" colspan="3">
									<label>{{gzqdgl.editRow.txbz}}</label>
							    </td>
							</tr>
		                </tbody>
		                <tfoot>
		                    <tr>
		                        <td colspan="4">
		                            <input type="button" name="ok" value="保存" class="zs-btn c-red"
		                                ng-click="formValidate(form) && saveQd('gzqdgl', gzqdgl.editRow, saveCloseWindow)"/>
		                            <input type="button" name="ok" value="取消" class="zs-btn c-green" 
		                                ng-click="closeWindow('edit')" />
		                        </td>
		                    </tr>
		                </tfoot>
		            </table>
		        </form>
		    </div>
		</div>
		
		<div ag-Window id="search" title="签到备注" width='1200px' height='600px'>
		    <div class="zs-form-tab ibox">
		        <form name="form" novalidate>
		            <table width="100%">
		                <tbody>
						   <tr>
		                        <td class="text" width="20%">部门:</td>
		                        <td class="left" width="30%">
		                        	<label>{{gzqdgl.editRow.danweimc}}</label>
		                        </td>
		                        <td class="text" width="20%">考勤人:</td>
		                        <td class="left" width="30%">
		                        	<label>{{gzqdgl.editRow.kaoqrmc}}</label>
		                        </td>
		                    </tr>
							<tr>
							    <td class="text" width="20%">日期:</td>
							    <td class="left" width="30%" colspan="3">
							    	<label>{{gzqdgl.editRow.nandu}}年{{gzqdgl.editRow.yuefen}}月{{gzqdgl.editRow.day}}日</label>
							    	<label>&nbsp;{{gzqdgl.editRow.xingqi}}</label>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">上午签到时间:</td>
							    <td class="left" width="30%">
									<label>{{gzqdgl.editRow.qdsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label>
							    </td>
								<td class="text" width="20%">上午签到地点:</td>
								<td class="left" width="30%">
									<label>{{gzqdgl.editRow.address}}</label>
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">上午签退时间:</td>
							    <td class="left" width="30%">
									<label>{{gzqdgl.editRow.qtsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label>
							    </td>
								<td class="text" width="20%">上午签退地点:</td>
								<td class="left" width="30%">
									<label>{{gzqdgl.editRow.outaddress}}</label>
								</td>
							</tr>
							
							<tr>
							    <td class="text" width="20%">下午签到时间:</td>
							    <td class="left" width="30%">
									<label>{{gzqdgl.editRow.xwqdsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label>
							    </td>
								<td class="text" width="20%">下午签到地点:</td>
								<td class="left" width="30%">
									<label>{{gzqdgl.editRow.xwaddress}}</label>
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">下午签退时间:</td>
							    <td class="left" width="30%">
									<label>{{gzqdgl.editRow.xwqtsj | asChineseTime | date:'yyyy-MM-dd HH:mm:ss'}}</label>
							    </td>
								<td class="text" width="20%">下午签退地点:</td>
								<td class="left" width="30%">
									<label>{{gzqdgl.editRow.xwoutaddress}}</label>
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">考勤备注:</td>
							    <td class="left" width="30%" colspan="3">
									<pre><label>{{gzqdgl.editRow.dkbz}}</label></pre>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">地点备注:</td>
							    <td class="left" width="30%" colspan="3">
									<pre><label>{{gzqdgl.editRow.bz}}</label></pre>
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">备注(用户填写):</td>
							    <td class="left" width="30%" colspan="3">
									<pre><label>{{gzqdgl.editRow.txbz}}</label></pre>
							    </td>
							</tr>
		                </tbody>
		                <tfoot>
		                    <tr>
		                        <td colspan="4">
		                            <!-- <input type="button" name="ok" value="保存" class="zs-btn c-red"
		                                ng-click="formValidate(form) && save('gzqdgl', gzqdgl.editRow, saveCloseWindow)"/> -->
		                            <input type="button" name="ok" value="关闭" class="zs-btn c-green" 
		                                ng-click="closeWindow('search')" />
		                        </td>
		                    </tr>
		                </tfoot>
		            </table>
		        </form>
		    </div>
		</div>
		
    </div>
</div>